package com.qubuyer.repository.entitys

import java.io.Serializable

class HomeBannerEntity : Serializable {
    var ad_id = 0
    var ad_name: String? = null
    var ad_link: String? = null
    var ad_code_full: String? = null
    var goods_id: Int? = null

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as HomeBannerEntity

        if (ad_id != other.ad_id) return false
        if (ad_name != other.ad_name) return false
        if (ad_link != other.ad_link) return false
        if (ad_code_full != other.ad_code_full) return false
        if (goods_id != other.goods_id) return false

        return true
    }

    override fun hashCode(): Int {
        var result = ad_id
        result = 31 * result + (ad_name?.hashCode() ?: 0)
        result = 31 * result + (ad_link?.hashCode() ?: 0)
        result = 31 * result + (ad_code_full?.hashCode() ?: 0)
        result = 31 * result + (goods_id ?: 0)
        return result
    }

}